package com.pinyougou.mapper;

import com.pinyougou.pojo.Specification;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import com.pinyougou.pojo.SpecificationOption;

import java.util.List;
import java.util.Map;

/**
 * SpecificationOptionMapper 数据访问接口
 *
 * @version 1.0
 * @date 2019-07-16 11:53:19
 */
public interface SpecificationOptionMapper extends Mapper<SpecificationOption>
{
    void insertList(Specification specification);

    /** 查找规格id,name */
    @Select("select id,spec_name as text from tb_specification")
    List<Map<String,Object>> findIdNameList();
}